---
title: View.CollapseAllHeadings Method (Word)
keywords: vbawd10.chm161809492
f1_keywords:
- vbawd10.chm161809492
ms.prod: word
ms.assetid: 04c9b1a9-68ef-8ecb-72ee-52b4d25fbf0a
ms.date: 06/08/2017
---


# View.CollapseAllHeadings Method (Word)

Collapses all the headings in the document.


## Syntax

 _expression_ . **CollapseAllHeadings**

 _expression_ A variable that represents a **View** object.


### Return value

 **VOID**


## Remarks

This method corresponds to the  **Collapse All Headings** command on the **Expand/Collapse** submenu of the context menu that appears when you right-click a heading.


## See also


#### Concepts


[View Object](view-object-word.md)
#### Other resources


[View Members](http://msdn.microsoft.com/library/2ba529d1-0d82-5031-8f66-a9b2632ea0d6%28Office.15%29.aspx)

